<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/form.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/toolbar.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/general.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/login.css" type="text/css" media="screen" />
        <?php Yii::app()->ClientScript->registerCoreScript('jquery'); ?>
        <style type="text/css">
        
        </style>
    </head>
    
    <body>
        <div id="header"></div>        
        <div id="main">
            <div class="inner">
				<div class="login">
					<div class="form">
                        <a href="#"><img src="<?php echo themeUrl(); ?>/images/logo_2.jpg" class="icon" /></a>
                        <div style="margin-top: 10px;">
                        <?php
                        if (is_null($user))
                        {
                            echo '<b>Sorry! Validation Code is not valid.</b>';
                        }
                        else
                        {
                            echo '<b>Congratulations! Your account is activated now. Please click <a href="'.Yii::app()->createUrl('/Admin').'">here</a> to login</b>'; 
                        }
                        ?>
                        </div>
                    </div>
					<div class="copyright">&copy; 2012 - IEC Admin</div>
				</div>
                
            </div>
        </div>
        
        <div id="footer"></div>
    </body>
    <script>
    function CheckRemember()
    {
        if ($('#remember').attr('checked'))
            $('#remember').attr('checked', false);
        else
            $('#remember').attr('checked', true);
    }
    </script>
    <script type="text/javascript">        
        function sizeBox() {
            var w = $(window).width();
            var h = document.getElementsByTagName('html')[0].clientHeight
            $('.login').css('position', 'absolute');
           
            $('.login').css('left', w/2-($('.login').width()/2));
        }

        $(document).ready(function() {
            sizeBox();            
        });

        $(window).resize(function() {
            sizeBox();
        });

    </script>
</html>	